dsh-remote-tunnel: Connecting Remote dsh Web to a Local SSH Tunnel
`dsh-remote-tunnel` is a Remote Host Tunnel Manager plugin for DSH, designed to simplify the complex workflow of running `dsh web` on remote Linux servers. By encapsulating port allocation, registry management, systemd supervision, and SSH tunnel maintenance, this plugin allows users to maintain only a single local SSH tunnel, thereby avoiding manual handling of details such as port conflicts, disconnection and reconnection, and system service configuration. Core features include: automatically allocating an independent remote port for each user and recording it to the registry; utilizing user-level or system-level systemd to supervise remote services; employing a resilient SSH tunneling mechanism that supports automatic reconnection upon network interruptions and heartbeat keep-alive; and intelligently handling local end...
Read MoreLinux SSH Service Configuration: Remote Connection and Security Settings
SSH is a secure protocol for remotely managing Linux servers, replacing the plaintext-transmitted Telnet. Installation requires installing openssh-server on the server using apt (for Ubuntu/Debian) or yum/dnf (for CentOS), followed by starting the service and enabling it to launch on boot. For connection, Windows users can use PuTTY or the system's built-in client, while Linux/macOS users can directly execute the ssh command in the terminal. The core configuration is in sshd_config, where it is recommended to change the port (e.g., to 2222), disable direct root login, and switch from password authentication to key-based login (by generating a key pair locally and copying the public key to the server). The corresponding port must be opened in the firewall. Key-based login enhances security, and changes take effect after restarting the service. Common issues can be checked via logs, and permission errors may require setting ~/.ssh permissions to 700 and authorized_keys to 600. These key security settings ensure secure remote management.
Read More